
<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<body>
<a href="http://127.0.0.1:2001/index.html#session?token={{ ctx.session.token }}&sdktoken={{ ctx.session.member.sdktoken }}&accout={{ ctx.session.member.mobile }}">跳转IM。。。</a>
<input type="hidden" value="{{ ctx.session.token }}" id="token">
<input type="hidden" value="{{ ctx.session.member.sdktoken }}" id="sdktoken">
<input type="hidden" value="{{ ctx.session.member.mobile }}" id="accout">
<script>
    //设置session
    const cookie = {
        //写cookies
        setCookie: function(name, value) {
           /* let days = 1
            let exp = new Date()
            exp.setTime(exp.getTime() + days*24*60*60*1000)
            document.cookie = name + '=' + escape (value) + ';expires=' + exp.toGMTString()*/
        },
        //读取cookies
        readCookie: function (name) {
            /*let arr = null
            let reg = new RegExp('(^| )'+name+'=([^;]*)(;|$)')
            if (document.cookie && (arr = document.cookie.match(reg))) {
                return unescape(arr[2])
            } else {
                return null;
            }*/
        },
        //删除cookies
        delCookie: function (name) {
            /*let cval = this.readCookie(name)
            if (cval!=null) {
                document.cookie = name + '=' + cval + ';expires=' + (new Date(0)).toGMTString()
            }*/
        }
    }

</script>


</body>
</html>


